import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// fade/zoom 等
import 'element-ui/lib/theme-chalk/base.css';
// collapse 展开折叠
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';

import './resource/styles/index.css' // 全局css样式
import './resource/icons/iconfont.css'

import i18n from './resource/lang' //国际化资源
import echarts from 'echarts'

Vue.prototype.$echarts = echarts;

if (!process.env.IS_WEB) {
  Vue.use(require('vue-electron'))
}

Vue.use(Element, CollapseTransition.name, CollapseTransition, {
  size: 'medium', // 设置 element-ui 默认大小
  i18n: (key, value) => i18n.t(key, value)
});

Vue.config.productionTip = false

//开启debug模式
Vue.config.debug = true;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  i18n,
  components: {App},
  template: '<App/>'
});
